package com.data.common.util.jsonschema.validate;

import com.alibaba.fastjson.JSONObject;
import java.util.HashMap;
import java.util.Map;

import com.data.modules.online.cgform.extend.ExtendJsonKey;
import com.data.common.util.jsonschema.CommonProperty;
import com.data.modules.online.cgform.util.CgformUtil;
import com.data.modules.online.config.executor.DataBaseConst;

public class PopupProperty extends CommonProperty {

    private static final long f35l = -3200493311633999539L;

    private String f36m;

    private String f37n;

    private String f38o;

    private Boolean f39p;

    public String getCode() {
        return this.f36m;
    }

    public void setCode(String code) {
        this.f36m = code;
    }

    public String getDestFields() {
        return this.f37n;
    }

    public void setDestFields(String destFields) {
        this.f37n = destFields;
    }

    public String getOrgFields() {
        return this.f38o;
    }

    public void setOrgFields(String orgFields) {
        this.f38o = orgFields;
    }

    public Boolean getPopupMulti() {
        return this.f39p;
    }

    public void setPopupMulti(Boolean popupMulti) {
        this.f39p = popupMulti;
    }

    public PopupProperty() {
    }

    public PopupProperty(String key, String title, String code, String destFields, String orgFields) {
        this.f5e = CgformUtil.f239M;
        this.f2b = DataBaseConst.f474i;
        this.f1a = key;
        this.f6f = title;
        this.f36m = code;
        this.f37n = destFields;
        this.f38o = orgFields;
        this.f39p = true;
    }

    @Override
    public Map<String, Object> getPropertyJson() {
        HashMap hashMap = new HashMap();
        hashMap.put("key", getKey());
        JSONObject commonJson = getCommonJson();
        if (this.f36m != null) {
            commonJson.put("code", this.f36m);
        }
        if (this.f37n != null) {
            commonJson.put("destFields", this.f37n);
        }
        if (this.f38o != null) {
            commonJson.put("orgFields", this.f38o);
        }
        commonJson.put(ExtendJsonKey.f89c, this.f39p);
        hashMap.put("prop", commonJson);
        return hashMap;
    }
}
